package com.qmyx.supply.admin.controller;

import com.ytjj.qmyx.supplychain.common.api.CommonResult;
import com.ytjj.qmyx.supplychain.mapper.entity.YxBankerApply;
import com.ytjj.qmyx.supplychain.service.BankerApplyService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 
 * 
 * @Version: 1.0
 */
@RestController
@RequestMapping("/bankerApply")
public class BankerApplyController {
    @Resource
    private BankerApplyService bankerApplyService;

    @GetMapping("/insert")
    public CommonResult insertApply(YxBankerApply bankerApply) {
        return CommonResult.success(bankerApplyService.insertApply(bankerApply));
    }
}
